import React from 'react'

export default function About(props) {
    const pushHome = () => {
        console.log(props)
        // props.history ==  vue中this.$router
        // props.location(当前路由信息)
        props.history.push("/home")
    }
    return (
        <div>
            About
            <button onClick = { pushHome }>点我</button>
        </div>
    )
}
